﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;
using DTO;

namespace BUS
{
    public class MachSacBus
    {
        public int KiemTra_MaTB(ThongSoChungDTO ts)
        {
            MachSacDao _ts = new MachSacDao();
            return _ts.KiemTra_MaTB(ts);
        }

        public int KT_TheoTenMachSac(ThongSoChungDTO ts)
        {
            MachSacDao _ts = new MachSacDao();
            return _ts.KT_TheoTenMachSac(ts);
        }
        public int ThemMachSac(ThongSoChungDTO ts, ThietBiDienDTO tb)
        {
            MachSacDao _ts = new MachSacDao();
            return _ts.ThemMachSac(ts, tb);
        }

        public int SuaMachSac(ThongSoChungDTO ts, ThietBiDienDTO tb)
        {
            MachSacDao _tb = new MachSacDao();
            return _tb.SuaMachSac(ts, tb);

        }

        public int XoaMachSac(int STT)
        {
            MachSacDao _tb = new MachSacDao();
            return _tb.XoaMachSac(STT);
        }
    }
}
